import request from "./request.js"


/**
 * 联系地址添加
 */
export function getAddressAdd(data) {
	return request({
		url: '/business/api/clientUserAddress/add',
		method: 'POST',
		data
	})
}

/**
 * 联系地址修改
 */
export function getAddressUpdate(data) {
	return request({
		url: '/business/api/clientUserAddress/update',
		method: 'POST',
		data
	})
}

/**
 * 联系地址列表
 */
export function getAddressList(data) {
	return request({
		url: '/business/api/clientUserAddress/page',
		method: 'GET',
		data
	})
}

/**
 * 联系地址详情
 */
export function getAddressDetail(addressId) {
	return request({
		url: '/business/api/clientUserAddress/detail',
		method: 'GET',
		data: {
			addressId
		}
	})
}
/**
 * 联系地址删除
 */
export function getAddressDelete(addressId) {
	return request({
		url: '/business/api/clientUserAddress/delete',
		method: 'POST',
		data: {
			addressId
		}
	})
}




/**
 * 银行卡添加
 */
export function getBankAdd(data) {
	return request({
		url: '/business/api/clientUserBank/add',
		method: 'POST',
		data
	})
}

/**
 * 银行卡修改
 */
export function getBankUpdate(data) {
	return request({
		url: '/business/api/clientUserBank/update',
		method: 'POST',
		data
	})
}

/**
 * 银行卡列表
 */
export function getBankList(data) {
	return request({
		url: '/business/api/clientUserBank/page',
		method: 'GET',
		data
	})
}

/**
 * 银行卡详情
 */
export function getBankDetail(bankId) {
	return request({
		url: '/business/api/clientUserBank/detail',
		method: 'GET',
		data: {
			bankId
		}
	})
}
/**
 * 银行卡删除
 */
export function getBankDelete(bankId) {
	return request({
		url: '/business/api/clientUserBank/delete',
		method: 'POST',
		data: {
			bankId
		}
	})
}


/**
 * 我的资产信息
 */
export function getUserAssets() {
	return request({
		url: '/business/api/clientUser/userAssets',
		method: 'GET',
	})
}

/**
 * 分险评估答题提交
 */
export function evaluationSubmission(data) {
	return request({
		url: '/business/api/clientEvaluateTopic/evaluationSubmission',
		method: 'POST',
		data
	})
}

/**
 * 风险评估调查问卷
 */
export function questionnaire(type) {
	return request({
		url: '/business/api/clientEvaluateTopic/questionnaire',
		method: 'GET',
		data: {
			type
		}
	})
}
/**
 * 风险评估调查问卷
 */
export function evaluationResult() {
	return request({
		url: '/business/api/clientEvaluateTopic/evaluationResult',
		method: 'GET',
	})
}

/**
 * 个人或企业实名认证
 */
export function realNameAuth(data) {
	return request({
		url: '/business/api/clientUser/realNameAuth',
		method: 'POST',
		data
	})
}

/**
 * 消息列表
 */
export function getMessagePage(data) {
	return request({
		url: '/business/api/clientMessage/findPage',
		method: 'GET',
		data
	})
}

/**
 * 消息详情
 */
export function getMessageDetail(messageId) {
	return request({
		url: '/business/api/clientMessage/detail',
		method: 'GET',
		data: {
			messageId
		}
	})
}

/**
 * 全部已读
 */
export function allRead(data) {
	return request({
		url: '/business/api/clientMessage/allRead',
		method: 'POST',
		data
	})
}
/**
 * 未读消息数
 */
export function getMessageCount(data) {
	return request({
		url: '/business/api/clientMessage/unreadCount',
		method: 'GET',
		data
	})
}

/**
 * 积分记录
 */
export function getPointsPage(data) {
	return request({
		url: '/business/api/clientUserPointsRecords/pointsPage',
		method: 'GET',
		data
	})
}

/**
 * 到期失效积分列表
 */
export function getExpirePointsPage(data) {
	return request({
		url: '/business/api/clientUserPointsRecords/expirePointsPage',
		method: 'GET',
		data
	})
}